package com.example.bbs.service;

import com.example.bbs.domain.entity.User;
import com.example.bbs.domain.model.GiteeUser;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;

public interface UserService {

    /**
     * 查询用户信息
     *
     * @param userId
     * @return
     */
    User getUserByUserId(String userId);

    /**
     * 查询用户的权限信息
     *
     * @param UserId
     * @return
     */
    Collection<? extends GrantedAuthority> getAuthority(String UserId);

    /**
     * 保存Gitee登录用户
     *
     * @param loginUser
     * @return
     */
    void save(GiteeUser loginUser);




}
